﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SurvivalMan
{
    /// <summary>
    /// This class creates the background
    /// </summary>
    class Background
    {
        private Texture2D background;

        /// <summary>
        /// This class are needed to print the background of the game, to create the background you just need one parameter
        /// and that is the texture2D of the background picture.
        /// </summary>
        /// <param name="background"></param>
        public Background(Texture2D background) 
        { 
            this.background = background; 
             
            
        }
        /// <summary>
        /// This function draws the background to the screen.
        /// </summary>
        /// <param name="spritebatch"></param>
        public void draw(SpriteBatch spritebatch)
        {
            spritebatch.Draw(background, new Vector2(0,0), Color.White);
            
            
            
            
            
        }

    }
}
